package day10.pack5;

@FunctionalInterface
public interface A {
    Dog method(String nickname, int age);
}
class Dog {
    public Dog() {
    }
    public Dog(String nickname, int age) {
        this.nickname = nickname;
        this.age = age;
    }

    private String nickname;
    private int age;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Dog{" +
                "nickname='" + nickname + '\'' +
                ", age=" + age +
                '}';
    }
}
